package com.hd.entity.doc.article;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.GenerationType;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 文件管理 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2019-01-16 10:06
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "doc")
public class Doc implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	* 类型
	*/
	@Column(name="type")
	private Integer type;
	/**
	* 文件名称
	*/
	@Column(name="name")
	private String name;
	/**
	* 目录路径
	*/
	@Column(name="path")
	private String path;

	/**
	* 父ID
	*/
	@Column(name="pid")
	private String pid;
	/**
	 * 作废时专用
	 */
	@Column(name="old_pid")
	private String oldPid;
	/**
	* 文件类型
	*/
	@Column(name="file_type")
	private String fileType;
	/**
	* 创建时间
	*/
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;
	/**
	* 状态
	*/
	@Column(name="status")
	private Integer status;
	/**
	* 主键
	*/
	@Id
	@Column(name="id")
	private String id;
	/**
	 * 最新修改时间
	 */
	@Column(name="last_update_time")
	private Date lastUpdateTime;
	/**
	 * 大小
	 */
	private String size;
	/**
	 * 关联附件ID
	 */
	@Column(name="attach_id")
	private String attachId;



	public Integer getType(){
		return type;
	}
	public void setType(Integer type){
		this.type=type;
	}
	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name=name;
	}
	public String getPath(){
		return path;
	}
	public void setPath(String path){
		this.path=path;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getFileType(){
		return fileType;
	}
	public void setFileType(String fileType){
		this.fileType=fileType;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Integer getStatus(){
		return status;
	}
	public void setStatus(Integer status){
		this.status=status;
	}
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id=id;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getAttachId() {
		return attachId;
	}

	public void setAttachId(String attachId) {
		this.attachId = attachId;
	}

	public String getOldPid() {
		return oldPid;
	}

	public void setOldPid(String oldPid) {
		this.oldPid = oldPid;
	}

}
